int i; // Tuto promnnou potebujeme i po skonen cyklu
for(i = 0; i < N; i++)
    if(!D[i]) break;
// zpracovn i
